<% form_for(baoming,:url=>on_line_baomings_path(params[:tuangou_pro_id])) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :quantity,"购买数量" %>
    <%= f.text_field :quantity,:size=>3 %>
  </p>
  <p>
    <%= f.label :buy_time ,"购买时间" %>
    <%= f.select :buy_time ,time_for_select%>
  </p>
  <p>
    <%= f.label :contact_name ,"联系人" %>
    <%= f.text_field :contact_name %>*
  </p>
  <p>
    <%= f.label :address ,"地址" %>
    <%= f.text_field :address %>*
  </p>
  <p>
    <%= f.label :tel ,"电话" %>
    <%= f.text_field :tel %>*
  </p>
  <p>
    <%= f.label :email ,"邮件" %>
    <%= f.text_field :email %>
  </p>
  <p>
    <%= f.label :sex ,"性别" %>
    <%= f.select :sex ,sex_for_select%>
  </p>
  <p>
    <%= f.label :description ,"描述" %>
    <%= f.text_area :description %>
  </p>
  <p>
    <%= image_submit_tag "baoming_btn.png" %>
  </p>
<% end %>